//
//  ACWMoreVC.m
//  aichewang
//
//  Created by ucs on 16/2/23.
//  Copyright © 2016年 aichewang. All rights reserved.
//

#import "ACWMoreVC.h"
#define gap 20

@implementation ACWMoreVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"更多";
    
    NSArray *titleArr = @[@"同城快运", @"城际运输", @"搬家公司", @"预约洗车", @"汽车美容", @"汽车配件", @"汽车租凭", @"二手车市", @"汽车商城", @"加油充值", @"ETC充值", @"市民卡"];
    
    CGFloat btnHW = (screenW - 3 * gap) / 3;
    
    for (int i = 0; i < 12; i ++) {
        UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];
        btn.frame = CGRectMake(gap / 2 + (btnHW + gap) * (i % 3), gap / 2 + (btnHW + gap) * (i / 3), btnHW, btnHW);
        btn.layer.borderWidth = 2;
        btn.layer.cornerRadius = btnHW / 5;
        btn.layer.borderColor = borderBlue.CGColor;
        [btn setTitle:titleArr[i] forState:UIControlStateNormal];
        [self.scrollView addSubview:btn];
    }
    self.scrollView.contentSize = CGSizeMake(screenW, (gap + btnHW) * (12 / 3));
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
  
}
@end
